﻿CREATE TABLE [dbo].[UserTask]
(
	[TaskId] INT NOT NULL , 
    [Usr] NVARCHAR(255) NOT NULL, 
    CONSTRAINT [PK_UserTask] PRIMARY KEY ([TaskId], [Usr]), 
    CONSTRAINT [FK_UserTask_Task_Id] FOREIGN KEY ([TaskId]) REFERENCES [Task]([Id]) 
)

GO

CREATE INDEX [IX_UserTask_TaskId] ON [dbo].[UserTask] ([TaskId])
